package org.UserHouse.Test;

import org.UserHouse.Dao.AddressDao;
import org.UserHouse.Dao.Imp.AddressDaoImp;
import org.UserHouse.Dao.Imp.OrderDaoImp;
import org.UserHouse.Dao.OrderDao;
import org.UserHouse.entity.Address;
import org.UserHouse.entity.Order;

import java.util.List;

/**
 * @author bin
 * @date 2024-12-22
 */
public class AddressDaoTest {
    public static void main(String[] args) {
        Address address = new Address();
//        order.setHname("iphone 15");
        AddressDao addressDao = new AddressDaoImp();
        List<Address> list = addressDao.selectPageAddress(address, 1, 5);
        Long count = addressDao.selectPageCount(address);



        for (Address a : list) {
            System.out.println(a.getAaddress());
        }

        System.out.println(count);
    }
}
